# python3
# coding:utf-8


def tst():
    with open(r'/ysg/test/test.log', 'r', encoding='utf-8') as fr:
    # with open(r'H:\py\DevOps\DevOps_api\scripts\test_ssh\test.log', 'r', encoding='utf-8') as fr:
        if len(fr.readlines()) > 20:
            print('文件行数超过 20 行 \n')


tst()
